<?php
namespace app\common\business;

use app\common\model\mysql\Abc as DemoModel;
class  Abc  {

   public function get_abc_class($class,$limit=5)
    {   
        if(empty($class)){
        return [];
        }

        $model = new DemoModel();

        $results=$model->get_abc_class($class,$limit);

        $categorys = config("category");
        foreach ($results as $key => $resul) {
            $results[$key]['classname'] = $categorys[$results[$key]['class']] ?? "其他";
        }
       return $results;

    }




}